﻿using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp;

namespace mozhi.smarterp.BasicData.TaxRates
{
    public class TaxRate : AggregateRootBase
    {
        public decimal Rate { private set; get; }

        private TaxRate() { }

        public TaxRate(Guid id , string code , string name , decimal rate , bool activated) : base(id , code , name , activated)
        {
            Rate = rate;

            Check.NotNull<decimal>(Rate, nameof(Rate));
        }
    }
}
